using UnityEngine;

public class EquipmentShopLayer : MonoBehaviour
{
	public UITabController tabController;

	public void Show(StoreItemsConfig.StoreItem.ItemType itemType)
	{
		foreach (UITabController.TabItem tab in tabController.tabs)
		{
			ShopItemTab component = tab.layer.GetComponent<ShopItemTab>();
			if (component == null || component.itemType != itemType)
			{
				continue;
			}
			tabController.activeTab = tab.button;
			break;
		}
		NavigationManager.instance.Push(base.gameObject);
	}
}
